home *** CD-ROM | disk | FTP | other *** search
- Path: gabi-soft.fr!usenet
- From: kanze@gabi.gabi-soft.fr (J. Kanze)
- Newsgroups: comp.lang.c++,comp.unix.programmer
- Subject: Re: c++ static objects and fork
- Date: 26 Jan 1996 18:24:49 GMT
- Organization: GABI Software, Sarl.
- Message-ID: <KANZE.96Jan26192449@gabi.gabi-soft.fr>
- References: <4e8qu5$cmb@news02.comp.pge.com>
- NNTP-Posting-Host: gabi.gabi-soft.fr
- In-reply-to: psk3@pge.com's message of 25 Jan 1996 20:58:45 GMT
-
- In article <4e8qu5$cmb@news02.comp.pge.com> psk3@pge.com (Phillip
- Knight) writes:
-
- > Here's a simple question, hopefully with a simple answer:
- >
- > I have a program which turns itself into a daemon using fork (etc.),
- > but I also have several static objects within the program. What happens to
- > these objects after the fork? There is no exec, so they dont get created anew,
- > at least I guess this is the case...
- > Anyone have this figured out? BTW, system is HPUX v 9.04.
-
- In general, they will have exactly the same state in both of the
- processes; the fork duplicates the state.
- --
- James Kanze (+33) 88 14 49 00 email: kanze@gabi-soft.fr
- GABI Software, Sarl., 8 rue des Francs Bourgeois, 67000 Strasbourg, France
- Conseils, Θtudes et rΘalisations en logiciel orientΘ objet --
- -- A la recherche d'une activitΘ dans une region francophone
-